using System;
using System.Collections.Generic;

namespace Terra.Service.Identity.DTOs;

/// <summary>
/// 用户信息DTO
/// </summary>
/// <remarks>
/// 包含用户的基本信息，用于API接口返回用户数据
/// </remarks>
public class UserDto
{
    /// <summary>
    /// 用户唯一标识
    /// </summary>
    /// <example>308a6931-2e89-4432-b71c-478f6414a127</example>
    public Guid Id { get; set; }

    /// <summary>
    /// 用户名（登录账号）
    /// </summary>
    /// <example>admin</example>
    public string UserName { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    public string RealName { get; set; }

    /// <summary>
    /// 电子邮件地址
    /// </summary>
    /// <example>admin@terra.com</example>
    public string Email { get; set; }

    /// <summary>
    /// 手机号码
    /// </summary>
    /// <example>13800138000</example>
    public string PhoneNumber { get; set; }



    /// <summary>
    /// 用户角色列表
    /// </summary>
    /// <example>["Administrator", "User"]</example>
    public List<string> Roles { get; set; } = new();
}